<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>

<p id = "statusError">${statusChange}</p>

<form:form method="post" action="changeSettings" commandName="user" id="formUserData">
    <form:hidden path="Id" />
<table>
    <tr>
        <td><spring:message code="label.name"/></td>
        <td><form:input path="name"/></td>
        <td><span class="error"><form:errors path="name"/></span></td>
    </tr>
    <tr>
        <td><spring:message code="label.surname"/></td>
        <td><form:input path="surname"/></td>
        <td><span class="error"><form:errors path="surname"/></span></td>
    </tr>
    <tr>
        <td><spring:message code="label.birthday" /></td>
        <td><form:input path="birth"/></td>
        <td><span class="error"><form:errors path="birth"/></span></td>
    </tr>   
    <tr>
        <td><spring:message code="label.hobby" /></td>
        <td><form:input path="hobby" /></td>
        <td><span class="error"><form:errors path="hobby"/></span></td>
    </tr>
    <tr>
        <td><spring:message code="label.telephone" /></td>
        <td><form:input path="phone" /></td>
        <td><span class="error"><form:errors path="phone"/></span></td>
    </tr>
    <tr>
        <td><spring:message code="label.email" /></td>
        <td><form:input path="email" /></td>
        <td><span class="error"><form:errors path="email"/></span></td>
    </tr>
    <tr>
        <td colspan="2"><input type="submit" value="change"></td>
    </tr>
</table>
</form:form>
